﻿using System;
namespace FxhjpgWeb.Model
{
	///<summary>
	///
	///</summary>
	public class LanMuInfo : ModelBase<int>
	{
		#region 成员字段

        private string _content = String.Empty;
        private string _content_En = String.Empty;
		private int _enableCache = 0;
		private DateTime? _inDate = null;
		///<summary>
		///栏目添加时间查询区间值
		///</summary>
		private DateTime[] _inDatespan = null;
		private string _inIP = String.Empty;
        private string _name = String.Empty;
        private string _name_En = String.Empty;
		private int _pId = 0;
		private int _sort = 0;
		private string _sourceUrl = String.Empty;
		private DateTime? _upDate = null;
		///<summary>
		///栏目更新时间查询区间值
		///</summary>
		private DateTime[] _upDatespan = null;
		private string _upIP = String.Empty;
		private string _urlName = String.Empty;
		private string _user = String.Empty;
		
		#endregion
		
		#region 构造方法
		
		public LanMuInfo() { }
		
		#endregion
		
		#region 成员方法
		
		public override int GetHashCode()
		{
			System.Text.StringBuilder sb = new System.Text.StringBuilder();
			sb.Append(this.GetType().FullName);
            sb.Append(_content);
            sb.Append(_content_En);
			sb.Append(_enableCache);
			sb.Append(_inDate);
			sb.Append(_inIP);
			sb.Append(_name);
            sb.Append(_name_En);
			sb.Append(_pId);
			sb.Append(_sort);
			sb.Append(_sourceUrl);
			sb.Append(_upDate);
			sb.Append(_upIP);
			sb.Append(_urlName);
			sb.Append(_user);
			return sb.ToString().GetHashCode();
		}
		
		#endregion
		
		#region 成员属性
		
		///<summary>
		///栏目主内容
		///</summary>
		public string Content
		{
			get
			{
				return _content;
			}
			set
			{
				_content = value;
			}
		}
        ///<summary>
        ///栏目英文主内容
        ///</summary>
        public string Content_En
        {
            get
            {
                return _content_En;
            }
            set
            {
                _content_En = value;
            }
        }
		///<summary>
		///栏目是否启用页面缓存
		///</summary>
		public int EnableCache
		{
			get
			{
				return _enableCache;
			}
			set
			{
				_enableCache = value;
			}
		}
		///<summary>
		///栏目添加时间
		///</summary>
		public DateTime? InDate
		{
			get
			{
				return _inDate;
			}
			set
			{
				_inDate = value;
			}
		}
		///<summary>
		///栏目添加时间查询区间值
		///</summary>
		public DateTime[] InDatespan{
			get
			{
				return _inDatespan;
			}
			set
			{
				_inDatespan = value;
			}
		}
		///<summary>
		///添加IP
		///</summary>
		public string InIP
		{
			get
			{
				return _inIP;
			}
			set
			{
				_inIP = value;
			}
		}
		///<summary>
		///栏目名称
		///</summary>
		public string Name
		{
			get
			{
				return _name;
			}
			set
			{
				_name = value;
			}
		}
        ///<summary>
        ///栏目英文名称
        ///</summary>
        public string Name_En
        {
            get
            {
                return _name_En;
            }
            set
            {
                _name_En = value;
            }
        }
		///<summary>
		///栏目所属父级分类
		///</summary>
		public int PId
		{
			get
			{
				return _pId;
			}
			set
			{
				_pId = value;
			}
		}
		///<summary>
		///栏目排序
		///</summary>
		public int Sort
		{
			get
			{
				return _sort;
			}
			set
			{
				_sort = value;
			}
		}
		///<summary>
		///栏目外链url地址
		///</summary>
		public string SourceUrl
		{
			get
			{
				return _sourceUrl;
			}
			set
			{
				_sourceUrl = value;
			}
		}
		///<summary>
		///栏目更新时间
		///</summary>
		public DateTime? UpDate
		{
			get
			{
				return _upDate;
			}
			set
			{
				_upDate = value;
			}
		}
		///<summary>
		///栏目更新时间查询区间值
		///</summary>
		public DateTime[] UpDatespan{
			get
			{
				return _upDatespan;
			}
			set
			{
				_upDatespan = value;
			}
		}
		///<summary>
		///栏目更新IP
		///</summary>
		public string UpIP
		{
			get
			{
				return _upIP;
			}
			set
			{
				_upIP = value;
			}
		}
		///<summary>
		///栏目url名字，方便重写
		///</summary>
		public string UrlName
		{
			get
			{
				return _urlName;
			}
			set
			{
				_urlName = value;
			}
		}
		///<summary>
		///栏目添加人
		///</summary>
		public string User
		{
			get
			{
				return _user;
			}
			set
			{
				_user = value;
			}
		}
		
        /// <summary>
        /// 自定义查询条件
        /// </summary>
        public string CustomWhere { get; set; }
		
		#endregion
	}
		
	public static class LanMuInfoHash
	{
		public const string TopNum = "TopNum";
		public const string OrderField = "OrderField";
		public const string OrderDirection = "OrderDirection";
        public const string Content = "Content";
        public const string Content_En = "Content_En";
		public const string EnableCache = "EnableCache";
		public const string Id = "Id";
		public const string InDate = "InDate";
		public const string InIP = "InIP";
        public const string Name = "Name";
        public const string Name_En = "Name_En";
		public const string PId = "PId";
		public const string Sort = "Sort";
		public const string SourceUrl = "SourceUrl";
		public const string UpDate = "UpDate";
		public const string UpIP = "UpIP";
		public const string UrlName = "UrlName";
		public const string User = "User";
		
        public const string CustomWhere = "CustomWhere";
	}
}